<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="../favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
       .checkbox-inline input[type=checkbox],.radio-inline input[type=radio] {
           margin-top: 4px;
      }
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color">销售及费用进度</h1>
    </div>
    <!-- 标题 -->
    <div>
    <form action="#" method="post" id="form_check" class="form-inline">
      <table class="row-margin-top tab-content table-bordered table" border="1">
          <tr>
            <td>财年：<select name="cid" id="cid" class="form-control">
             <option value="">--请选择--</option>
              {volist name="cainian" id="c"}
               
                {if $c.id==$cid}
                  <option value="{$c.id}" selected>{$c.title}</option>
                {else/}
                  <option value="{$c.id}">{$c.title}</option>
                {/if}
              {/volist}
            </select></td>
         </tr>
          <tr>
            <td class="text-center">
                <button class="btn btn-info btn-sm query" type="button" id="check">查询</button>
                    <button class="btn btn-info btn-sm emptyIf" type="button" id="clear_check">清空查询条件</button>
              <button class="btn btn-info daochu" type="button">导出Excel</button>
            </td>
         </tr>
      </table>
      <table class="table row-margin-top table-bordered table-hover text-right bud_hei">
          <tr class="info">
            <th class="text-center">&nbsp;</th>
            {volist name="kaohe1" id="k"}
              <th class="text-center">{$k.title}</th>
            {/volist}
            <th class="text-center">合计</th>
          </tr>
          <tr>
            <td class="text-center">TI费用</td>
           {volist name="ti" id="f"}
              <td class="ObjectNum jisuan{$i}">{$f}</td>
            {/volist}
            <td class="ObjectNum jisuan{$kaohec}">{$zti}</td>
          </tr>
           <tr>
            <td class="text-center">发运额</td>
            {volist name="fy" id="f"}
              <td class="ObjectNum jisuan{$i}">{$f}</td>
            {/volist}
            <td class="ObjectNum jisuan{$kaohec}">{$zfy}</td>
          </tr>
           <tr>
            <td class="text-center">回款额</td>
            {volist name="kaohe1" id="k"}
              <td class="ObjectNum jisuan{$i}">0</td>
            {/volist}
            <td class="ObjectNum jisuan{$kaohec}">0</td>
          </tr>
           <tr>
            <td class="text-center">零售额</td>
            {volist name="kaohe1" id="k"}
              <td class="ObjectNum jisuan{$i}">0</td>
            {/volist}
            <td class="ObjectNum jisuan{$kaohec}">0</td>
          </tr>
          <tfoot>
			  <tr class="trTotal1 font-bold">
           			<td >合计:</td>
           			{volist name="kaohe1" id="k"}
              <td class="ObjectNum zonghe{$i}">0</td>
                {/volist}
           			<td class="ObjectNum zonghe{$kaohec}">3750</td>
          		</tr>
          </tfoot>
      </table>
     
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!--统计代码，可删除-->
    <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
    $(".daochu").click(function(){
      var cid=$("#cid").val();
      window.open("{:url('xiaoshoudc')}?cid="+cid)

    })
    var kaohec={$kaohec};
          $(document).ready(function(){
            for(var i=0;i<=kaohec;i++){
              var he=0;
              $(".jisuan"+i).each(function(){
                he+=parseFloat($(this).html())
              })
              $(".zonghe"+i).html(he)
            }
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);

          var $vorified =$(".vorified");
          var $applying =$(".applying");
          var $allowed  =$(".allowed");
          var $vorifiedAhref ="vorifiedPage.html";
          var $applyingAhref ="applyingPage.html";
          toNumA($vorified,$vorifiedAhref);
          toNumA($applying,$applyingAhref);
          toNumA($allowed,$vorifiedAhref);

          })
             $("#check").click(function(){
              
              document.getElementById("form_check").submit();
        })
        $("#clear_check").click(function(){
            $("select").val("");
            
             document.getElementById("form_check").submit();
        })
    </script>
</body>

</html>
